ifnewer command line cutility <= ie. a cute utility :-)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

(c) Musus Umbra 1996

Permission is granted for unlimited personal use & modification.

Permission is granted for redistribution (by any method) provided that:
	No charge is made for this software.  A reasonable charge may be
		made for media / handling / etc. This software is *free*.
	Any distributed copy of this software must be unaltered and entire.
		You may not distribute modified / imcomplete copies of this
		software.  If you fix a bug / add a feature, let me know so
		that I can update the master copy.

As usual with freeware, there is no warranty of any kind.  The author cannot
be help responsible for any loss/damage arising from the use/inability to
use this software.  It is the user's responsibility to determine the fitness
of this software for any purpose they put it to.

(But if it doesn't work, I will try to help :-)


ifnewer
~~~~~~~

Syntax:
	IfNewer <file1> <file2> <command>

	ifnewer executes <command> if <file1> is 'newer' than <file2>.

	If one (but not both) of the files is untyped, or <file2>
	doesn't exist, then <file1> is considered to be newer.

	If <file1> and <file2> are both untyped, they are compared
	and <file1> is considered newer if their contents differ.


here (for example) is the script I use to create the 'upgrade' archives
for my RISC OS port of Frotz:

   dir <obey$dir>
   cdir /tmp
   copy !Frotz /tmp.!frotz ~c~vrft
   forall -r -s -p !Frotz -c ifnewer %o 125/222.%o copy %o /tmp.%o ~c~v~rf
   dir /tmp
   remove !Frotz.Resources.GameIDs
   zip -rq9 125to132/zip !Frotz
   dir ^
   zip -q9 /tmp.125to132/zip !ReadMe! Upgrade
   copy /tmp.125to132/zip 125to132/zip ~c~v~rf
   wipe /tmp ~c~vrf

(the 'forall' utility executes a command for all matching files on a specified
path.  It's available from my web site).


Contact:
	e-mail:		musus@argonet.co.uk
	WWW:		http://www.argonet.co.uk/users/musus/
	Snail:		c/o 23 Baronsway, Whitkirk, Leeds, LS15 7AW, ENGLAND.
